package com.wuchengdong.web.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("appointment")
@ApiModel("预约表")
public class Appointment {
    @TableId
    @ApiModelProperty("预约ID")
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("预约服务ID")
    private Integer serviceId;

    @ApiModelProperty("预约服务对应员工ID")
    private Integer employeeId;

    @ApiModelProperty("发起预约时间")
    private LocalDateTime appointmentTime;

    @ApiModelProperty("预约状态：pending等待中 confirmed已确认 completed已完成")
    private String status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;
}
